import request from '@/utils/request'

// 查询稽核记录列表
export function listRecords(query) {
  return request({
    url: '/project/records/list',
    method: 'get',
    params: query
  })
}

// 查询稽核记录详细
export function getRecords(audId) {
  return request({
    url: '/project/records/' + audId,
    method: 'get'
  })
}

export function getRecordstory(auditListFlag) {
  return request({
    url: '/project/records/check/' + auditListFlag,
    method: 'get'
  })
}

// 新增稽核记录
export function addRecords(data) {
  return request({
    url: '/project/records',
    method: 'post',
    data: data
  })
}

// 修改稽核记录
export function updateRecords(data) {
  return request({
    url: '/project/records',
    method: 'put',
    data: data
  })
}

// 删除稽核记录
export function delRecords(aurId) {
  return request({
    url: '/project/records/' + aurId,
    method: 'delete'
  })
}

// 导出稽核记录
export function exportRecords(query) {
  return request({
    url: '/project/records/export',
    method: 'get',
    params: query
  })
}

// 导出稽核详情
export function exportonce(audId) {
  return request({
    url: '/project/records/list/export/' + audId,
    method: 'get',
    params: query
  })
}

export function recordsOptions(data) {
  return request({
    url: '/project/records/list/get',
    method: 'get',
    data: data
  })
}
